﻿using System;
using System.Data;
using OneMG.Phoenix.Entity;
using System.Collections.Generic;
namespace OneMG.Phoenix.Respository
{
    public interface IRights
    {
    
        System.Int32 AddRights(ERights rights);

        void UpdateByRightID(ERights rights);

		void DeleteByRightID(System.Int32 rightID);
		 
        ERights GetByRightID(System.Int32  rightID);

        IList<ERights> GetByRightTypeID(System.Int32 rightTypeID);

        string GetRightNameByUserID(System.Int32 userID);

    }
}